<template>
	<div class="body">
		<div class="cheng"> </div>
		<div class="conter">
			<van-icon name="arrow-left" @click="retreat"></van-icon>
			<div>{{title}}</div>
			<div></div>
		</div>
	</div>
</template>

<script>
	import {
		Icon
	} from 'vant'
	export default {
		props: ['title',],
		data() {
			return {

			}
		},
		methods: {
			retreat(){
				this.$router.go(-1)
			}
		},
		components: {
			[Icon.name]: Icon
		}
	}
</script>

<style lang="less" scoped>
	@themeColor: #1ba4f0;
	@backColor: #f5f5f5;

	@shenglue: {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.body {
		width: 100vw;
		height: 20vw;
		background-color: @themeColor;
		color: #fff;
		box-sizing: border-box;
		padding: 2vw;

		.cheng {
			height: 5vw;
		}

		.conter {
			width: 100%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			div {
				color: #fff;
				font-size: 25px;
				font-weight: 700;
			}
		}
	}
</style>
